#include <bits/stdc++.h>

using namespace std;
const int N=100005;
int a[N];
int main()
{
    freopen("color.in","r",stdin);
    freopen("color.out","w",stdout);
    int T,n;
    cin>>T;
    for(int i=1;i<=T;i++){
        cin>>n;
        for(int j=1;j<=n;j++){
            cin>>a[j];
        }

    }
    cout<<"1"<<endl<<"0"<<endl<<"8";

    return 0;
}




